
/**
 * @description: 是否是微信浏览器
 * @return {*}
 * @author: lcz
 */
export function isWeiXin(): boolean {
  let ua = (window as any).navigator.userAgent.toLowerCase();
  if (ua.match(/MicroMessenger/i) == "micromessenger") {
    return true;
  } else {
    return false;
  }
}